package com.restaurant.application.util.counter;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.BeanSpec;

public class CounterDesc extends UnitDescription {

    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(Counter.class, "CounterData");
        desc.nextBean("CounterValue")
                .add("index", Integer.class)
                .add("time", Long.class);
        desc.nextBean("CounterData")
                .add("data", BeanSpec.mapOf("CounterValue"));
        desc.run("./");
    }
}
